package assignment.ton.gui;

import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class AboutFrame extends JFrame{
	private static final long serialVersionUID = 2741037733834674367L;
	public AboutFrame(){
		this.setTitle("About - TON Java Generator");
		this.setIconImage(new ImageIcon(getClass().getResource("ton_icon.gif")).getImage());
		this.setResizable(false);
		JPanel title = new JPanel();
		this.add(title, BorderLayout.NORTH);
		JLabel tLabel = new JLabel("TON Java Generator");
		title.add(tLabel);
		Font font = new Font("Sans", 20, 20);
		Font font2 = new Font("Sans", 12, 12);
		tLabel.setFont(font);
		String cont = "<html><div align=\"center\">This java generator was developed by<br>Tim Stableford<br>Dean Allen<br>Shaun Close<br>http://assignment-cs124-tim.googlecode.com</div></html>";
		JLabel content = new JLabel(cont);
		content.setFont(font2);
		this.add(content, BorderLayout.CENTER);
		this.pack();
	}
}
